#include <iostream>
using namespace std;
int func(int a, int b)
{
    return a+b;
}
//重载本质转换
//int func_int_int_int(int a, int b, int)
int func(int a, int b, int)
{
    return a+b;
}

//重载本质转换
//int func_int_int
//int func_int_int_int
//int func(int a, int b, int = 0)
//{
//    return a+b;
//}

int test1()
{
    printf("fun(1,2,3) = %d\n", func(1,2,3));
    printf("Press enter to contiue ...");
    getchar();
    return 0;
}
//目的
//1.兼容C语言程序中可能出现的不规范写法
//2.预留程序扩展
int test2()
{
    printf("func(1,2) = %d\n", func(1,2));
    printf("Press enter to continue ...");
    getchar();
    return 0;
}

int main()
{
    test1();
    test2();
    return 0;
}